<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2019/1/11
 * Time: 09:52
 */

namespace app\modules\state;


abstract class StateOrder
{
    private $_details;

    protected static $state;

    abstract protected function done();

    protected function setStatus(string $status)
    {
        $this->_details['status'] = $status;
        $this->_details['updated_at'] = time();
    }

    protected function getStatus(): string
    {
        return $this->_details['status'];
    }
}